package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * JAVA IO 输入与输出 Input和Ooutput
 * Java将读写功能按方向划分为输入和输出
 */
public class FosDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("./fos.dat");

        fos.write(2);

        fos.write(3);

        fos.write(-1);

        fos.write(2147483647);

        fos.write(256);

        System.out.println("写出完毕！");
        fos.close();

    }
}
